import request from '@/utils/request'

// 查询权限列表
export function listPower(query) {
  return request({
    url: '/system/power/list',
    method: 'get',
    params: query
  })
}

// 查询权限详细
export function getPower(powerId) {
  return request({
    url: '/system/power/' + powerId,
    method: 'get'
  })
}

// 新增权限
export function addPower(data) {
  return request({
    url: '/system/power',
    method: 'post',
    data: data
  })
}

// 修改权限
export function updatePower(data) {
  return request({
    url: '/system/power',
    method: 'put',
    data: data
  })
}

// 删除权限
export function delPower(powerId) {
  return request({
    url: '/system/power/' + powerId,
    method: 'delete'
  })
}
